﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kugar.Core.Security
{
    public interface IUserPermissionManager
    {
        int CheckPermissionByID(int permissionID);
        int CheckPermissionByName(string permissionName);

        KeyValuePair<int, int>[] CheckPermissionByIDList(int[] permissionIDList);

        KeyValuePair<string, int>[] CheckPermissionByNameList(string[] permissionNameList);

        bool HasPermission(string permissionName);
        bool HasPermission(string[] permissionNameList);

        bool HasPermission(int permissionID);
        bool HasPermission(int[] permissionIDList);

        RMS_PermissionValueCollection GetPermissionListByUserID();
    }
}
